package com.cn.crmsystem.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "联系人基本数据实体(Contacts)")
public class Contacts implements Serializable {

  @Id
  @ApiModelProperty("主键id（不用传值）")
  private Long id;

  @ApiModelProperty("联系人名字")
  private String name;

  @ApiModelProperty("性别")
  private Long sex;

  @ApiModelProperty("线索（客户）编号")
  private Long customer_id;

  @ApiModelProperty("手机")
  private String phone;

  @ApiModelProperty("职位")
  private String post;

  @ApiModelProperty("是否为关键决策人")
  private Long key;

  @ApiModelProperty("地址")
  private String address;

  @ApiModelProperty("创建人id")
  private Long create_id;

  @ApiModelProperty("下次联系时间")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date contact_time;

  @ApiModelProperty("删除状态（0：显示 1：隐藏）（不用传值）")
  private Long delete_state;

  @ApiModelProperty("备注")
  private String remarks;


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Long getSex() {
    return sex;
  }

  public void setSex(Long sex) {
    this.sex = sex;
  }

  public Long getCustomer_id() {
    return customer_id;
  }

  public void setCustomer_id(Long customer_id) {
    this.customer_id = customer_id;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getPost() {
    return post;
  }

  public void setPost(String post) {
    this.post = post;
  }

  public Long getKey() {
    return key;
  }

  public void setKey(Long key) {
    this.key = key;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public Long getCreate_id() {
    return create_id;
  }

  public void setCreate_id(Long create_id) {
    this.create_id = create_id;
  }

  public Date getContact_time() {
    return contact_time;
  }

  public void setContact_time(Date contact_time) {
    this.contact_time = contact_time;
  }

  public Long getDelete_state() {
    return delete_state;
  }

  public void setDelete_state(Long delete_state) {
    this.delete_state = delete_state;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  @Override
  public String toString() {
    return "Contacts{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", sex=" + sex +
            ", customer_Id=" + customer_id +
            ", phone='" + phone + '\'' +
            ", post='" + post + '\'' +
            ", key=" + key +
            ", address='" + address + '\'' +
            ", create_Id=" + create_id +
            ", contact_Time=" + contact_time +
            ", delete_State=" + delete_state +
            ", remarks='" + remarks + '\'' +
            '}';
  }
}
